Skip to content

Fix tutorial example#3

Merged
swstack merged 2 commits into
digidotcom:masterfrom
nastevens:fix-tutorial-example
Sep 18, 2014
Merged

Fix tutorial example#3
swstack merged 2 commits into
digidotcom:masterfrom
nastevens:fix-tutorial-example

Conversation

@nastevens
Copy link
Copy Markdown

This fixes two bugs in the quick example in README and index.rst. Right now the examples, as-written, do not work because the method names do not exist.

Nick Stevens added 2 commits September 18, 2014 14:25
The README and index.rst call a nonexistant get_name() method on a
Device object. The correct call is get_stream_id().
The README and index.rst examples call a non-existant is_connected()
method on Device. Rather than blindly changing the docs to match the
code, the better solution in this case is to rename get_connected() to
is_connected() to match the boolean return type of the method.
swstack pushed a commit that referenced this pull request Sep 18, 2014
@swstack swstack merged commit dd9cc52 into digidotcom:master Sep 18, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants